﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zhj.Community.Domain.Test;
using Zhj.Community.Domain.Test.Dto;

namespace Zhj.Community.Application.Test
{
    public class TestApp : ITestApp
    {
        public ITestService TestService { get; set; }

        public TestApp(ITestService testService)
        {
            TestService = testService;
        }

        public string TestFunc()
        {
            return TestService.TestFunc();
        }

        public List<StudentList> GetStduentList()
        {
            //检测用户信息
            return TestService.GetStduentList();
        }

        public StudentEdit GetStduentById(long id)
        {
            if (id == 0)
            {
                throw new Exception("id不能为空");
            }
            return TestService.GetStduentById(id);
        }

        public bool EditStudent(StudentEdit student)
        {

            return false;
        }

    }
}
